# -*- coding: UTF-8 -*-

"""Greeter Module for Pyrc"""

import random

channels = [
    "#rendon","#beeseek"
]

greetings = [
    "%s benvenuto!",
    "Ciao %s!",
    "Holaaa %s",
    "%s buonasera",
]

def saluta(pyrc,umask,chan):
    if chan[0] in channels and umask[0] != pyrc.me:
        pyrc.msg(chan[0],random.choice(greetings) % umask[0])
        
events = [
    ['JOIN' , '(.+)!.+' , '(.+)' , saluta],
]
